package com.yunxin.core.infra.persistence.repository.contact;

import com.yunxin.core.domain.model.contact.ContactMessageTemplateRepository;
import com.yunxin.core.infra.persistence.mapper.contact.ContactMessageTemplateExtendMapper;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Repository;

/**
 * @author zero°
 * @since 2023-07-12
 */
@Repository
@RequiredArgsConstructor
public class ContactMessageTemplateRepositoryImpl implements ContactMessageTemplateRepository {

    private final ContactMessageTemplateExtendMapper contactMessageTemplateExtendMapper;

    @Override
    public String getTemplateContentById(Long id) {
        return contactMessageTemplateExtendMapper.selectTemplateById(id);
    }
}
